package club.yunqiang.dto;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Range;

/**
 * @author YunQiang
 */
public class ModifyDBInstanceNetworkExpireTime {

	@ApiModelProperty(value = "要延期的经典网络连接串。经典网络字符串有两种：当前实例的经典网络字符串和读写分离的经典网络字符串")
	private String connectionString ;

	@ApiModelProperty(value = "经典网络连接串的保留天数。取值范围：[1-120]")
	@Range(min = 1, max = 120)
	private Integer classicExpiredDays ;

	@Override
	public String toString() {
		return "ModifyDBInstanceNetworkExpireTime{" +
				"connectionString='" + connectionString + '\'' +
				", classicExpiredDays=" + classicExpiredDays +
				'}';
	}

	public String getConnectionString() {
		return connectionString;
	}

	public void setConnectionString(String connectionString) {
		this.connectionString = connectionString;
	}

	public Integer getClassicExpiredDays() {
		return classicExpiredDays;
	}

	public void setClassicExpiredDays(Integer classicExpiredDays) {
		this.classicExpiredDays = classicExpiredDays;
	}
}
